package com.linln.admin.bank.validator;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

import com.linln.admin.bank.domain.Clue;

import lombok.Data;

/**
 * @author kome
 * @date 2020/08/08
 */
@Data
public class ClueForm extends Clue implements Serializable {

    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$", message = "手机号码格式不正确")
    private String phone;

    @NotEmpty(message = "昵称不能为空")
    private String nick;

    @NotEmpty(message = "机构代码不能为空")
    private String orgCode;

}
